/*
 * Project:     My Project Work, Copyright (C) 2011
 * Created at:  05.08.2011
 */
package de.myprojectwork.model.dto;

import java.util.Date;

/**
 *
 * @author Chris Holdschuh
 */
public abstract class AbstractDto {
    
    private int id;
    private Date update;

    public AbstractDto() { 
        // leer
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Date getUpdate() {
        return update;
    }

    public void setUpdate(Date update) {
        this.update = update;
    }

    @Override
    public String toString() {
        return this.getClass().getSimpleName() 
                + " {" + id + "}";
    }
    
    // TODO: gerneric equals + hash
}
